package com.david.client.dto;

import java.util.Date;
import java.util.Set;


// Generated Jul 6, 2007 9:41:50 AM by Hibernate Tools 3.2.0.b9

public class UserDTO implements java.io.Serializable {
	protected Long userID;
/**
 *@gwt.typeArgs <com.david.client.dto.RoleDTO>
 */
	protected Set roles;

	protected String loginName;

	protected String passwd;

	protected String firstName;

	protected String lastName;

	protected Date birthday;

	protected AddressDTO address;

	protected String email;

	protected String nationality;

	protected String language;

	public UserDTO() {
		userID = null;
	}

	public UserDTO(String loginName, String passwd) {
		userID = null;
		this.loginName = loginName;
		this.passwd = passwd;
	}

	public AddressDTO getAddress() {
		return address;
	}

	public void setAddress(AddressDTO address) {
		this.address = address;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public Long getUserID() {
		return userID;
	}

	public void setUserID(Long userID) {
		this.userID = userID;
	}

	public Set getRoles() {
		return roles;
	}

	public void setRoles(Set roles) {
		this.roles = roles;
	}
	
	public void addRole(RoleDTO role){
		roles.add(role);
	}
}
